﻿using System;

namespace ConsoleApp1
{
    class TheGame()
    {
        static void Main(string[] args)
        {
            //游戏管理实例
            GameManager gameManager = new GameManager();

            //初始化牌组
            List<Card> cards = gameManager.CardInit();

            //初始化玩家
            List<Player> players = gameManager.players;
            players.Add(new Player("Player1"));
            players.Add(new Player("Player2"));
            players.Add(new Player("Player3"));

            cards = gameManager.ShuffleCards();

            //给玩家发牌
            gameManager.DealCards();

            //打印玩家牌组
            foreach (Player player in players)
            {
                Console.Write(player.name + ": ");
                foreach (Card card in player.handCards)
                {
                    card.PrintCards();
                }
                Console.WriteLine();
            }

            gameManager.AiPlay();

            Console.ReadKey();
        }

    }
    
}

